package com.qk.management.mapper;

import com.qk.entity.Activity;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;

@Mapper
public interface ActivityMapper {
    Integer count(Integer channel, Integer type, Integer status);

    List<Activity> selectByPage(Integer channel, Integer type, Integer status, Integer offSet, Integer pageSize);

    void deleteById(Integer id);
    void add(Activity activity);
    void update(Activity activity);
    Activity findById(Integer id);
    List<Activity> findByType(Integer type);
}
